﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Framework.Domain.Enum
{


    /*枚举使用原则：数字只能往后加，不能改现有枚举的数字，因为现有枚举已经入库*/


    #region 通用枚举
    public enum State
    {
        [Display(Description = "禁用")]
        Disable = 0,
        [Display(Description = "启用")]
        Enable = 1
    }

    public enum Sex
    {
        [Display(Description = "女")]
        Female = 0,
        [Display(Description = "男")]
        Male = 1,
        [Display(Description = "保密")]
        Secret = 2,
        [Display(Description = "其他")]
        Others = 3
    }

    public enum Status
    {
        [Display(Description = "否")]
        No = 0,
        [Display(Description = "是")]
        YES = 1
    }
    #endregion


    /// <summary>
    /// 登录日志
    /// </summary>
    public enum LoginLogType
    {
        [Display(Description = "后台")]
        BK = 0,
        [Display(Description = "手机端")]
        Phone = 1
    }

    /// <summary>
    /// 错误码类型
    /// </summary>
    public enum ReturnCodeType
    {
        [Display(Description = "系统错误码")]
        System = 0,
        [Display(Description = "微信错误码")]
        WeiXin = 1,
        [Display(Description = "微博错误码")]
        WeiBo = 2
    }

    /// <summary>
    /// 日志级别
    /// </summary>
    public enum LogLevel
    {
        Debug = 0,
        Info = 1,
        Warn = 2,
        Error = 3,
        Fatal = 4
    }



}
